<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:url('Module/index')}" method="post">
        <div class="bjui-searchBar">
            {if authcheck('Admin/Module/add')}
            <a class="btn btn-default" href="{:url('Module/add')}" data-id="add_Module" data-toggle="dialog" data-maxable="false" data-mask="true" data-width="500" data-height="310" data-icon="plus">新增</a>
            {/if}
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
            <tr>
            {volist name="thead" id="val"}
                <th {eq name="$key" value="group"}data-order-field="{$key}"{/eq}>{$val}</th>
            {/volist}
                <th width="120">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="row"}
            <tr data-id="{$row.id}">
                {volist name="thead" id="val"}
                <td>{eq name="$key" value="title"}{$row[$key]|raw}{else/}{$row[$key]}{/eq}</td>
                {/volist}
                <td>
                    {if authcheck('Admin/Module/edit')}
                        <a href="{:url('Module/edit',['key'=>'id','val'=>$row['id']])}" class="btn btn-green" data-toggle="dialog" data-maxable="false" data-id="edit_Module" data-mask="true" data-width="500" data-height="310">修改</a>
                    {/if}
                    {if authcheck('Admin/Module/del')}
                        <a href="{:url('Module/del',['key'=>'id','val'=>$row['id']])}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                    {/if}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>顶级模块{$totalCount.x}条, 二级模块{$totalCount.y}条, 三级模块{$totalCount.z}条</span>
    </div>
</div>